#ifndef __BUTTON_H__
#define __BUTTON_H__

#ifdef __cplusplus
extern "C" {
#endif

/* Includes ------------------------------------------------------------------*/
#include "main.h"

/* USER CODE BEGIN Includes */
#include "gpio.h"

extern int line;
//extern int Mhz;
//extern int khz;
//extern int one_hz;
extern int ampl;
extern int hz;
extern int value;
extern int step;
extern int encoder_poision_cnt;// 为脉冲计数器
extern int encoder_dir ;//为方向
extern int b;
extern uint8_t ifchange;
extern int right;
extern int left;
/* USER CODE END Includes */

/* USER CODE BEGIN Private defines */
void HAL_GPIO_EXTI_Falling_Callback(uint16_t GPIO_Pin);
void freq_change(int ifadd,int step);
void ampli_change(int ifadd,int step);
void value_change(int line,int ifadd);
void step_change(int ifadd);
void delay_us(int count);
int ENCODER_READ(void);
/* USER CODE END Private defines */

//void MX_GPIO_Init(void);

/* USER CODE BEGIN Prototypes */

/* USER CODE END Prototypes */

#ifdef __cplusplus
}
#endif
#endif
